<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<c:set var="site" value="notice" scope="application"/>
<html>
	<c:import url="module/jsp/head.jsp"/>
	<body >
		<c:import url="module/jsp/header.jsp"/>
		<c:import url="module/jsp/aside.jsp"/>
		<main >
			<div class="main-content">
				<div class="welcome">您现在的位置是：首页><a href="${pageContext.request.contextPath}/noticeList">公告</a>>${notice.title}</div>
				<div class="newsbox">
					<section class="q-width-full">
						<div class="news">
							<h2 class="newstitle"><b>${notice.title}</b></h2>
							<div class="contentbox q-border-none" >
								<p class="bloginfo">
									<span style="display: none"></span>
									<span>
										<jsp:useBean id="timestamp" class="java.util.Date"/>
										<jsp:setProperty name="timestamp" property="time" value="${notice.gmtCreate *1000}"/>
										<fmt:formatDate value="${timestamp}" pattern="yyyy-MM-dd"/>
									</span>
									<span>${notice.category.name}</span>
								</p>
								<br>
								<div class="entry">
									${notice.content}
								</div>
							</div>
						</div>
					</section>
				</div>
				<div class="blank"></div>
				<c:import url="module/jsp/footer.jsp"/>
			</div>
		</main>
		<a href="#" class="cd-top cd-is-visible">Top</a>
	</body>
	<c:import url="module/jsp/js.jsp"/>
</html>
